#pragma once

#include "utilities.h"


class CSpeedometer
{
public:
	CSpeedometer(IrrlichtDevice *device, vector2di position);
	~CSpeedometer(void);

	void update();								// Redraws speedometer
	void rotateArrow(f32 degrees);				// Rotates spedometer arrow on angle

private:
	IVideoDriver*	driver;
	ISceneManager*	smgr;
	
	ITexture*		scaleTexture;				// Spedometer textures
	ITexture*		arrowTexture;
	
	SMeshBuffer		planeMesh;
	matrix4			matrix;						// Transformation matrix

	vector2di		position;					// Upper left corner position
};

